package com.nbsaas.boot.cms.rest.convert;

import com.nbsaas.boot.cms.data.entity.ArticleCategory;
import com.nbsaas.boot.cms.api.domain.simple.ArticleCategorySimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 文章分类-列表对象转换器
*/

public class ArticleCategorySimpleConvert implements Converter<ArticleCategorySimple, ArticleCategory> {




@Override
public ArticleCategorySimple convert(ArticleCategory source) {
    ArticleCategorySimple result = new ArticleCategorySimple();

                result.setImage(source.getImage());
                result.setVisible(source.getVisible());
                result.setSeoDescription(source.getSeoDescription());
                result.setIcon(source.getIcon());
                result.setDescription(source.getDescription());
                result.setArticleCount(source.getArticleCount());
                result.setSort(source.getSort());
                result.setSeoTitle(source.getSeoTitle());
                result.setSeoKeywords(source.getSeoKeywords());
                result.setAddDate(source.getAddDate());
                result.setParentId(source.getParentId());
                result.setName(source.getName());
                result.setAlias(source.getAlias());
                result.setId(source.getId());
                result.setLastDate(source.getLastDate());


    return result;
}

}